package client.comm.commlib.toast

import client.comm.commlib.ContextProvider

fun toast(message: String?, error: Int = 0) {
    ToastFactory.get().createToast(message)
    if (error == 401) {
        offline()
    }
}

fun offline() {
    ContextProvider.get().logoutRun()
}